package com.cn.wanxi.util;

public class Tool {
    public static Float stringToFloat(String value) {
        try {
            return Float.parseFloat(value);
        } catch (Exception e) {

        }
        return 0f;
    }

    public static Integer stringToInt(String value) {
        try {
            return Integer.parseInt(value);
        } catch (Exception e) {

        }
        return 0;
    }

}
